package com.wgly.question.utils;
import org.apache.poi.ss.formula.functions.T;
import java.util.List;

public class PageBeanUtil<T> {
	private int pageSize;
	private int pageNum;	
	private long total;
	private List<T> topics;
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getPageNum() {
		return pageNum;
	}
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}
	public long getTotal() {
		return total;
	}
	public void setTotal(long total) {
		this.total = total;
	}
	public List<T> getTopics() {
		return topics;
	}
	public void setTopics(List<T> topics) {
		this.topics = topics;
	}
	@Override
	public String toString() {
	    final StringBuffer sb = new StringBuffer("PageInfo{");
	    sb.append(" pageSize=").append(pageSize);
	    sb.append(",pageNum=").append(pageNum);
	    sb.append(",total=").append(total);
	    sb.append(", list=").append(topics);
	    sb.append('}');
	    return sb.toString();
	}
}
